<?php
$oAppconfigTypes = AppconfigHandler::getTypes();
$oAppconfig = AppconfigHandler::getConfig();
?>
<form action="index.php" method="post" name="form_appconfig_set">
<input type="hidden" name="sAction" value="appconfig-set">
<input type="hidden" name="sView" value="appconfig-set">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxhandle" colspan="2"><?php print msg('Settings') ?></td>
	</tr>
<?php
if (@$_REQUEST['bSuccess']) {
	?>
	<tr>
		<td class="boxbody center small" colspan="2">
			<?php print msg('Settings successfully updated') ?>
		</td>
	</tr>
	<?php
}

foreach ($oAppconfigTypes as $sVarname => $oThisAppconfig)
{
	?>
	<tr>
		<td class="fieldname"><?php print $oThisAppconfig['caption'] ?>:</td>
		<td class="fieldvalue">
			<input type="checkbox" name="appconfig_<?php print $sVarname ?>" <?php print (@$oAppconfig[$sVarname] ? 'checked' : '') ?>>
		</td>
	</tr>
	<?php
}
?>
	<tr>
		<td class="boxbody center" colspan="2">
			<input type="submit" value="<?php print msg('Set') ?>">
		</td>
	</tr>
</table>
</form>

